package nojava;

public class Main {
    public static void main(String[] args) {
        Dog dog = new Dog();
        new Thread(new RunnableA(dog)).start();
        new Thread(new RunnableB(dog)).start();
    }
}
// 写一个类 Dog，有同步两个方法
